<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>华为品牌享钜惠</title>
    <link rel="stylesheet" href="/favicon.ico">
    <link rel="stylesheet" href="/libs/font/iconfont.css">
    <link rel="stylesheet" href="/css/index.css">
    <link rel="stylesheet" href="/libs/swiper/css/swiper.min.css">
    
</head>
<body>
    <!-- 引入头部 -->
    <header></header>
    <!-- 位置追踪栏 -->
    <div class="nav" id="navtip">
        <ul class="nav-ul" id="shopL">
        </ul>
        <script type="text/html" id="shops-template1">
            {{each list item}}
            <li><a href="javascript:;">{{item.name}}</a></li>
            {{/each}}
        </script>
    </div>
    <div class="main">
        <div class='preferent'>
            <div class="preferent-top">
                <a href="javascript:;">
                    ￥<span>1915</span>
                    <p>每天10：00准时免费抢</p>
                </a>
                <a href="javascript:;">
                    ￥<span>915</span>
                    <p>每天10：00准时免费抢</p>
                </a>
                <a href="javascript:;">
                    ￥<span>100</span>
                    <p>限部分华为手机可用</p>
                </a>
                <a href="javascript:;" class="more"><p>更多好券</p></a>
            </div>   
            <div class="preferent-bottom">
                <div class="preferent-bottom-left">
                    <a href="#">
                        <div>
                            <p>拼团低至6折起</p>
                            <span>无线充，三脚架自拍杆</span>
                        </div>
                        <img src="/imgs/pic1.jpg" alt="" width="80" height="80">
                    </a>
                    <a href="#">
                        <div>
                            <p>拼团低至6折起</p>
                            <span>无线充，三脚架自拍杆</span>
                        </div>
                        <img src="/imgs/pic1.jpg" alt="" width="80" height="80">
                    </a>
                    <a href="#">
                        <div>
                            <p>拼团低至6折起</p>
                            <span>无线充，三脚架自拍杆</span>
                        </div>
                        <img src="/imgs/pic1.jpg" alt="" width="80" height="80">
                    </a>
                    <a href="#">
                        <div>
                            <p>拼团低至6折起</p>
                            <span>无线充，三脚架自拍杆</span>
                        </div>
                        <img src="/imgs/pic1.jpg" alt="" width="80" height="80">
                    </a>
                </div>
                <div class="preferent-bottom-right">更多福利</div>                
            </div> 
        </div>
        <!-- 获取list0 -->
        <div class="list1 shop">
           <h2></h2>
           <ul class="list-detail">                     
           </ul>
           <script type="text/html" id="getListDatilTemplate0">
            {{each list item}}
                <li>
                    <a href="/html/commodityDetails.html?id={{item.id}}" target = "_blank">
                        <div>
                            <img src="{{item.image}}" alt="">
                            {{if item.couponValue}}
                            <span>{{item.couponValue}}</span>
                            {{/if}}
                        </div>
                        <p>{{item.title.slice(0,10)}}...</p>
                        {{if item.qunTitle}}
                        <p>{{item.qunTitle.slice(0,10)}}...</p>
                        {{/if}}
                        <span>￥<p>{{item.price}}</p> 起</span>
                    </a>
                </li>   
            {{/each}}
           </script>
        </div>
        <!-- 获取list1 -->
        <div class="list2 shop">
            <h2></h2>
           <ul  class="list-detail">
            </ul>
            <script type="text/html" id="getListDatilTemplate1">
                {{each list item}}
                    <li>
                        <a href="/html/commodityDetails.html?id={{item.id}}" target = "_blank">
                            <div>
                                <img src="{{item.image}}" alt="">
                                {{if item.couponValue}}
                                <span>{{item.couponValue}}</span>
                                {{/if}}
                            </div>
                            <p>{{item.title.slice(0,10)}}...</p>
                            {{if item.qunTitle}}
                            <p>{{item.qunTitle.slice(0,10)}}...</p>
                            {{/if}}
                            <span>￥<p>{{item.price}}</p> 起</span>
                        </a>
                    </li>   
                {{/each}}
            </script>          
        </div> 
        <!-- 获取list2 -->
        <div class="shop-pc">
            <h2></h2>
            <ul  class="list-detail">                
                
            </ul>
            <script type="text/html" id="getListDatilTemplate2">
                <li>
                    <a href="/html/commodityDetails.html?id={{list[0].id}}">
                        <img src="{{list[0].image}}" alt="">
                    </a>
                </li>
                {{each list.slice(1,19) item}}                    
                    <li>
                        <a href="/html/commodityDetails.html?id={{item.id}}" target = "_blank">
                            <p>{{item.title.slice(0,10)}}...</p>
                            {{if item.qunTitle}}
                            <p>{{item.qunTitle.slice(0,10)}}...</p>
                            {{/if}}
                            <span>￥<p>{{item.price}}</p></span>
                            <div class="good-img">
                                <img src="{{item.image}}" alt="">
                            </div> 
                            <div class="good-buy">
                                立即购买
                            </div>                       
                        </a>
                    </li>   
                {{/each}}
            </script> 
        </div> 
        <!-- 获取list3 -->  
        <div class="shop-pc">
            <h2></h2>
            <ul  class="list-detail">
               
            </ul>
            <script type="text/html" id="getListDatilTemplate3">
                <li>
                    <a href="/html/commodityDetails.html?id={{list[0].id}}">
                        <img src="{{list[0].image}}" alt="">
                    </a>
                </li>
                {{each list.slice(1,19) item}}                    
                    <li>
                        <a href="/html/commodityDetails.html?id={{item.id}}" target = "_blank">
                            <p>{{item.title.slice(0,10)}}...</p>
                            {{if item.qunTitle}}
                            <p>{{item.qunTitle.slice(0,10)}}...</p>
                            {{/if}}
                            <span>￥<p>{{item.price}}</p></span>
                            <div class="good-img">
                                <img src="{{item.image}}" alt="{{item.title}}">
                            </div> 
                            <div class="good-buy">
                                立即购买
                            </div>                       
                        </a>
                    </li>  
                {{/each}}
            </script> 
        </div>
        <!-- 获取list4  轮播-->
        <div class="shop-furniture">
            <h2></h2>
            <a href="/html/list.html"  class="main-good">
                <img src="/imgs/pic2.jpg" alt="">
            </a>
        <!-- 轮播 -->
            <div class="swiper-container banner">
                <div class="swiper-wrapper list-detail">
                </div>   
                <script type="text/html" id="getListDatilTemplate4">
                    {{each list.slice(0,10) item}}                   
                        <div class="swiper-slide {{item.type === 2? 'ads' : ''}}">
                            <a href="/html/commodityDetails.html?id={{item.id}}" target = "_blank">
                                <div>
                                    <img src="{{item.image}}" alt="{{item.title}}">
                                </div>
                                {{if item.type === 1}}
                                <p>{{item.title}}</p>
                                <span>￥<p>{{item.price}}</p></span>
                                {{/if}}
                            </a>
                        </div> 
                    {{/each}}
                </script>                
                <!-- 如果需要分页器 -->
                <div class="swiper-pagination"></div>
                
                <!-- 如果需要导航按钮 -->
                <div class="swiper-button-prev"></div>
                <div class="swiper-button-next"></div>
            </div>
            <a href="/html/list.html"  class="main-good">
                <img src="/imgs/pic3.jpg" alt="">
            </a>
        </div>  
         <!--获取list5  -->
        <div class="shop">
            <h2></h2>
            <ul class="list-detail">                               
            </ul>
            <script type="text/html" id="getListDatilTemplate5">
                {{each list item}}                                    
                <li class="{{item.type === 2? 'ads' : ''}}">
                    {{if item.type === 1}}
                    <a href="/html/commodityDetails.html?id={{item.id}}" target = "_blank">
                    {{else}}
                    <a href="http://quan.lukou.com/#/column/3464?tabId=10&tabSelectedId=3255" target = "_blank">
                    {{/if}}
                        <div>
                            <img src="{{item.image}}" alt="">
                            <span>{{item.expireMsg}}</span>
                        </div>
                        {{if item.type === 1}}
                        <p>{{item.title.slice(0,15)}}...</p>
                        <p>{{item.qunTitle.slice(0,10)}}...</p>
                        <span>￥<p>{{item.price}}</p></span>
                        {{/if}}
                    </a>
                </li>  
                {{/each}}
            </script>
        </div>  
    </div>
    <div class="foot">
        <img src="/imgs/pic4.jpg" alt="" >
    </div>
    <a href="#" class="callbackTop">返回TOP</a>
    <!-- 2.引入require导入导出文件  data-main 引入index.js文件-->
    <script src="/libs/require/require.min.js" data-main="/js/index"></script>
</body>
</html>